﻿using Kang.Monitor.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kang.Monitor.Wpf.Service
{
    internal class LoginService : ILoginService
    {
        public Task<ApiResponse> Login(string username, string password)
        {
            if (username == "admin" && password == "123456")
            {
                return Task.FromResult(new ApiResponse()
                {
                    Status = true,
                    Message = "登录成功",
                    Result = null
                });
            }
            return Task.FromResult(new ApiResponse()
            {
                Status = false,
                Message = "登录失败",
                Result = null
            });
        }
    }
}